<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<c:catch var="key01">
<%
int i=5/0;
%>
</c:catch>
<hr>
异常信息：
<!-- Exception对象的toString -->
调用 toString方法：${key01 }<br>
调用getCause方法：${key01.cause }<br>
调用getMessage方法：${key01.message }<br>
调用getStackTrace方法：${key01.stackTrace }<br>
</body>
</html>